﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace FlexiCommerce.Configuration
{
    public class HostSection : ConfigurationSection
    {

        [ConfigurationProperty("serverAddress")]
        public string ServerAddress
        {
            get { return (string)base["serverAddress"]; }
            set { base["serverAddress"] = value; }
        }

        [ConfigurationProperty("isWeb", DefaultValue = true)]
        public bool IsWeb
        {
            get { return (bool)base["isWeb"]; }
            set { base["isWeb"] = value; }
        }

        [ConfigurationProperty("imageCacheFolder", DefaultValue = "~/ImageCache/")]
        public string ImageCacheFolder
        {
            get { return (string)base["imageCacheFolder"]; }
            set { base["imageCacheFolder"] = value; }
        }

    }
}
